<!DOCTYPE html>
<script>
var input = document.createElement('input')
input.type = 'date'
var event = document.createEvent('KeyboardEvent')
event.initKeyboardEvent('keydown', false, false, null, 'Down')
input.dispatchEvent(event)
input.type = 'color'
</script>
<p>Success if the browser didn't crash.</p>
